$(function() {
	$('.banner').slide({
		titCell: '.hd ul',
		mainCell: '.bd ul',
		autoPlay: true,
		effect: 'left',
		prevCell: ".banner_prev",
		nextCell: ".banner_next",
		delayTime: 1000,
		interTime: 2500,
	});
	let ifun_swiper = new Swiper('.ifun_swiper .swiper-container', {
		slidesPerView: 4,
		spaceBetween: 54,
		pagination: {
			el: '.swiper-pagination',
		},
	});
	$('.container-top li').on('click', function(e) {
		let i = e.target.dataset.i;
		$(this).addClass('on').siblings().removeClass('on');
		let $this = $(this).parent().parent().next().children('.rates_list')[i];
		$($this).addClass('on').siblings().removeClass('on');
	});
	$(".l_inews").slide({
		vis: 1,
		mainCell: ".bd",
		effect: "leftLoop",
		prevCell: '.inews_prve',
		nextCell: '.inews_next',
	});
	var rela = new Swiper('.rela_r .swiper-container', {
		direction: 'vertical',
		slidesPerView: 'auto',
		freeMode: true,
		mousewheel: true,
	});
	$('.search_btn').on('click', function() {
		$('.head_form').fadeToggle();
	})
})
